package cn.sccl.common.zabbix;

import java.util.List;
import java.util.Map;
import java.util.HashMap;

/**
 * Created by liupan on 2017/3/6.
 */
public class TestZabbix {

    public static void main(String args[]) {
        Zabbix zabbix = Zabbix.getZabbix();
        Map<String,Object> params = new HashMap<String,Object>();
        params.put("output", "extend");
        params.put("itemids", "44527");
        params.put("time_from", "1509879071");
        params.put("time_till", "1510224671");
        params.put("history","1");
        Map<String, Object> result = zabbix.call("history.get", params);
        List<Map<String, Object>> mapList = (List<Map<String, Object>>) result.get("result");
        System.out.println(mapList);
    }
}
